/**
 * 
 */
package org.t2.game.server.module.data.saver;

import org.springframework.stereotype.Component;
import org.t2.game.server.module.player.model.Player;

import sh.t2.share.module.player.log.PlayerMissionLog;

/**
 * 
 */
@Component
public class PlayerMissionSaver extends AbstractPlayerSaver<Player, PlayerMissionLog> {

	@Override
	public long getNumber(Player t) {
		return t.getMission();
	}

	@Override
	protected void setNumber0(Player t, long number) {
		t.setMission(number);
	}

	@Override
	protected PlayerMissionLog newNumberLog() {
		return new PlayerMissionLog();
	}
}
